package pl.edu.pk.cc.common.dto;

import java.util.Date;


public class CCEmploymentDTO implements CCResourceDTO{
	private Long id;
	private Date startDate;
	private Long lenght;
	private Float salary;
	private CCWorkerDTO worker;
	
	public CCEmploymentDTO(){}
	
	
	
	public CCEmploymentDTO(Date startDate, Long lenght,
			Float salary) {
		this.startDate = startDate;
		this.lenght = lenght;

		this.salary = salary;
	}



	public Long getId() {
		return id;
	}
	private void setId(Long id) {
		this.id = id;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Long getLenght() {
		return lenght;
	}
	public void setLenght(Long lenght) {
		this.lenght = lenght;
	}
	public Float getSalary() {
		return salary;
	}
	public void setSalary(Float salary) {
		this.salary = salary;
	}
	public CCWorkerDTO getWorker() {
		return worker;
	}
	public void setWorker(CCWorkerDTO worker) {
		this.worker = worker;
	}



	public void updateEmp(Date startDate, Long lenght, Float salary) {
		this.startDate = startDate;
		this.lenght = lenght;
		this.salary = salary;
	}

	
}
